import App from '../page/App'
import Home from '../page/Children/Home'
import Shop from '../page/Children/Shop'

import Shoporder from '../page/Children/Shoporder'
import Address from '../page/Children/Address'

import List from '../page/Children/List'
import My from '../page/Children/My'
import Login from '../page/Login'


const page = [
    {
        from: '/',
        to: "/app"
    },
    {
        path: '/app',
        component: App,
        children: [
            {
                from:'/app',
                to: '/app/home',
            },
            {
                path: '/app/home',
                component: Home ,
                name: "美洽医疗首页",
                meta: {
                    auth: ['超级管理员', '管理员']
                },

            }
            // ,
            // {
            //     path: '/app/shop',
            //     component: Shop,
            //     name: "商城管理",
            //     meta: {
            //         auth: ['超级管理员']
            //     },

            // }
            ,

            {
                path: '/app/shop',
                component: Shop,
                name: "商城药品列表管理",
                meta: {
                    auth: ['超级管理员']
                },

            },
            
            {
                path: '/app/shoporder',
                component: Shoporder,
                name: "商城药品订单管理",
                meta: {
                    auth: ['超级管理员']
                },

            },
            {
                path: '/app/Address',
                component: Address,
                name: "地址列表管理",
                meta: {
                    auth: ['超级管理员']
                },

            },
            {
                path: '/app/list',
                component: List,
                name: "科普管理",
                meta: {
                    auth: ['超级管理员', '管理员']
                },

            },
            {
                path: '/app/my',
                component: My,
                name: "我的个人管理",
                meta: {
                    auth: ['超级管理员','管理员']
                },
            }
        ]
    }
    ,
    {
        path: '/login',
        component: Login
    }
    // ,
    // {
    //     // path: '/listDetail/:id',
    //     path: '/listDetail',
    //     component: ListDetail
    // }
    // ,
    // {
    //     path: '/shopDetail/:id',
    //     // path: '/shopDetail',
    //     component: ShopDetail
    // }
    // ,
    // {
    //     // path: '/listDetail/:id',
    //     path: '/car',
    //     component: Car
    // }
]

export default page